package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.StaffDistrictInfoDao;
import io.wdb.modules.generator.generator.entity.StaffDistrictInfoEntity;
import io.wdb.modules.generator.generator.service.StaffDistrictInfoService;



@Service("staffDistrictInfoService")
public class StaffDistrictInfoServiceImpl implements StaffDistrictInfoService {
	@Autowired
	private StaffDistrictInfoDao staffDistrictInfoDao;
	
	@Override
	public StaffDistrictInfoEntity queryObject(Long id){
		return staffDistrictInfoDao.queryObject(id);
	}
	
	@Override
	public List<StaffDistrictInfoEntity> queryList(Map<String, Object> map){
		return staffDistrictInfoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return staffDistrictInfoDao.queryTotal(map);
	}
	
	@Override
	public void save(StaffDistrictInfoEntity staffDistrictInfo){
		staffDistrictInfoDao.save(staffDistrictInfo);
	}
	
	@Override
	public void update(StaffDistrictInfoEntity staffDistrictInfo){
		staffDistrictInfoDao.update(staffDistrictInfo);
	}
	
	@Override
	public void delete(Long id){
		staffDistrictInfoDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		staffDistrictInfoDao.deleteBatch(ids);
	}
	
}
